﻿package java_45;

public class DOG {
	String name="无名氏";
	int health=100;
	int love =0;
	String strain="聪明的拉布拉多";
	public void print(){
		System.out.println("宠物的自白:\n我的名字是:" + this.name 
				 +"健康值" + this.health + "和主人的亲密度是" + 
		this.love + "我是一只" + this.strain);
	}
}